package server.gameplay;

import java.util.ArrayList;
import java.util.List;

public class TowerAttack {
	private List<Unit> units;
	private ArrayList<Building> buildings;
	
	
	public TowerAttack(List<Unit> units, ArrayList<Building> buildings) {
		this.units = units;
		this.buildings = buildings;
	}
	
	public void update() {
		if (units.size() > 0) {
			for (int i = 0; i < buildings.size(); i++) {
				buildings.get(i).inRange(units);
			}
		}
	}
}
